xen/rbtree: fix MISRA C 2012 Rule 20.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 22 Aug 2022 10:11:45 +0000 (12:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Aug 2022 10:11:45 +0000 (12:11 +0200)
commit696ee5ca9f4e2256e76056cf72a72001a9748f4c
treee2449d52904cd6cfc130f99c0e1433c7e559f032
parentc5659ef2dab3b4f538615e46a4990eea3101917c
xen/rbtree: fix MISRA C 2012 Rule 20.7 violation

In macro __rb_parent(), add parentheses around the macro parameter to prevent
against unintended expansions.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/lib/rbtree.c